package cn.jzq.demo.modules.rabbit;

import cn.jzq.demo.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RabbitTestController {
    @Autowired
    private Sender sender;

    @GetMapping("/test/rabbit")
    public R rabbitTest() {
        sender.send();
        return R.ok();
    }
}
